package com.algorithm;

/**
 * Created by houjinxin on 16/9/30.
 */
public class Node {

    private Object value;
    private Node left;
    private Node right;

    public Node(){}

    public Node(Node left, Node right, Object value) {
        this.left =left;
        this.right = right;
        this.value = value;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public Node getLeft() {
        return left;
    }

    public Node setLeft(Node left) {
        this.left = left;
        return this;
    }

    public Node getRight() {
        return right;
    }

    public Node setRight(Node right) {
        this.right = right;
        return this;
    }

}
